package com.service;

import com.entity.pojo.Article;
import com.entity.vo.AjaxMassage;
import com.entity.vo.ArticlePage;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.List;

public interface ArticleService {


    AjaxMassage addAjax(Article article, MultipartFile multipartFile, HttpServletRequest request, HttpSession session);

    int  insertSelective(Article record);

    boolean deleteByPrimaryKey(String newsId);

    Article selecOneByTitle(String newsTitle);

    ArticlePage findByPage(Integer currentPage, Integer rows, String newsTitle, Byte newsState);

    Article selectByPrimaryKey(String newsId);

    boolean  updateByPrimaryKeySelective(Article record);

    AjaxMassage update(Article article, MultipartFile multipartFile, HttpServletRequest request, HttpSession session);


}
